
using System;
using System.Linq;
using Csla;
using Csla.Data;
using Csla.Security;
using Csla.Validation;

namespace HousingInfo.Library
{ 
	public partial class RoleBO : Csla.BusinessBase<RoleBO>
	{

		#region Authorization Rules
		protected override void AddAuthorizationRules()
		{
			//TODO: Define authorization rules in RoleBO
			//AuthorizationRules.AllowRead(RoleIDProperty, "RoleBOReadGroup");
			//AuthorizationRules.AllowRead(RoleNameProperty, "RoleBOReadGroup");

			//AuthorizationRules.AllowWrite(RoleNameProperty, "RoleBOWriteGroup");
		}

		protected static void AddObjectAuthorizationRules()
		{
			//TODO: Define object-level authorization rules of RoleBO
			//AuthorizationRules.AllowCreate(typeof(RoleBO), "RoleBOCreateGroup"));
			//AuthorizationRules.AllowEdit(typeof(RoleBO), "RoleBOEditGroup"));
			//AuthorizationRules.AllowDelete(typeof(RoleBO), "RoleBODeleteGroup"));
		}
		#endregion //Authorization Rules
		private void AssignParentKey(HousingInfo.DataLinQ.Role data)
		{
			 //data.ParentId = ReadProperty<ParentBO>(ParentBOProperty).Id;
		}

	}
}
